using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._UtilityNetworkTools
{
    /// <summary>
    /// <para>Update Utility Network Schema</para>
    /// <para>Updates the schema of a utility network based upon a Xml set of instructions</para>
    /// <para>根据 Xml 指令集更新公共设施网络的方案</para>
    /// </summary>    
    [DisplayName("Update Utility Network Schema")]
    public class UpdateUtilityNetworkSchema : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public UpdateUtilityNetworkSchema()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_utility_network">
        /// <para>Input Utility Network</para>
        /// <para></para>
        /// <para></para>
        /// </param>
        /// <param name="_operations">
        /// <para>Schema Operations</para>
        /// <para></para>
        /// <para></para>
        /// </param>
        public UpdateUtilityNetworkSchema(object _in_utility_network, object _operations)
        {
            this._in_utility_network = _in_utility_network;
            this._operations = _operations;
        }
        public override string ToolboxName => "Utility Network Tools";

        public override string ToolName => "Update Utility Network Schema";

        public override string CallName => "un.UpdateUtilityNetworkSchema";

        public override List<string> AcceptEnvironments => [];

        public override object[] ParameterInfo => [_in_utility_network, _operations, _out_messages, _out_utility_network];

        /// <summary>
        /// <para>Input Utility Network</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Utility Network")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_utility_network { get; set; }


        /// <summary>
        /// <para>Schema Operations</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Schema Operations")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _operations { get; set; }


        /// <summary>
        /// <para>Output Messages</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Messages")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_messages { get; set; }


        /// <summary>
        /// <para>Output Utility Network</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Utility Network")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_utility_network { get; set; }


        public UpdateUtilityNetworkSchema SetEnv()
        {
            base.SetEnv();
            return this;
        }

    }

}